package entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 橙子
 * @since 2023-02-27
 */
@Getter
@Setter
@TableName("tb_buy")
@ApiModel(value = "Buy对象", description = "")
public class Buy implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("buy_id")
    private Integer buyId;

    @ApiModelProperty("用户昵称")
    @TableField("buy_name")
    private String buyName;

    @ApiModelProperty("用户账号")
    @TableField("buy_account")
    private String buyAccount;

    @ApiModelProperty("消费金额")
    @TableField("buy_spend_money")
    private BigDecimal buySpendMoney;

    @ApiModelProperty("消费次数")
    @TableField("buy_spend_times")
    private Integer buySpendTimes;

    @ApiModelProperty("订单均价")
    @TableField("buy_order_average")
    private BigDecimal buyOrderAverage;

    @ApiModelProperty("购买时间")
    @TableField("buy_time")
    private LocalDateTime buyTime;

}
